package com.ph.shopping.facade.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ph.shopping.facade.profit.entity.HunterEntity;
import com.ph.shopping.facade.profit.vo.AgentAndProNameVo;
import com.ph.shopping.facade.profit.vo.HunterProfitVo;
import com.ph.shopping.facade.profit.vo.PositionCityVo;
import com.ph.shopping.facade.profit.vo.PositionCountyVo;
import com.ph.shopping.facade.profit.vo.PositionProvinceVo;
import com.ph.shopping.facade.profit.vo.PositionTownVo;
import com.ph.shopping.facade.profit.vo.PositionVo;

public interface IHunterMapper {

    int insertSelective(HunterEntity record);

    HunterEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HunterEntity record);

    int updateByPrimaryKey(HunterEntity record);
    
    List<AgentAndProNameVo> getAgentNameAndPromoterName(@Param("provinceId") long provinceId, @Param("cityId") long cityId, @Param("countyId") long countyId);
    //查询省市县
    List<PositionVo> getAreaByTownId(@Param("townId") long townId);
    //获取乡镇列表
    List<PositionTownVo> getTowns(@Param("countyId") long countyId);
    //查询省
    List<PositionProvinceVo> getPosition();
    //查询市
    List<PositionCityVo> getCityByPid(@Param("provinceId") long provinceId) throws Exception;
    //查询区、县
    List<PositionCountyVo> getCountyByCid(@Param("cityId") long cityId) throws Exception;
    //查询乡镇(及社区)
    List<PositionTownVo> getTownByCid(@Param("countyId") long countyId) throws Exception;
    
    //获取猎头分润列表
    List<HunterProfitVo> getHunterProfits(@Param("orderNo") String orderNo);
    
    
}